package com.example.springbott.bean;

import lombok.Data;

@Data
public class RespVoBase {
    Object data;
    Integer code;
    String msg;
    public static RespVoBase ok(Object data){
        RespVoBase respVoBase = new RespVoBase();
        respVoBase.setCode(200);
        respVoBase.setData(data);
        return  respVoBase;
    }
    public static RespVoBase error(String msg){
        RespVoBase respVoBase = new RespVoBase();
        respVoBase.setCode(400);
        respVoBase.setMsg(msg);
        return  respVoBase;
    }



}
